require.config({
    map: {
        '*': {
            'css': '/cdn/css.min.js',
        }
    },
    // 默认自动加载的模块
    deps: [
        "css!/cdn/simplemde/simplemde.min.css"
    ],
    paths: {
        simplemde: "/cdn/simplemde/simplemde.min"
    }
});

require(["simplemde"], (simplemde) => {
    new Vue({
        el: "#app",
        mounted() {
            var editor = new simplemde({ element: document.querySelector("#editor") });
        },
        template: `
        <div>
            <textarea id="editor"></textarea>
        </div>
        `
    })
})

